<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>百叶窗</title>
    <style>
*{
    margin: 0;
    padding: 0;
}
ul,ol{
    list-style: none;

}
body{
    background-color: #330b0b;
    
}
.mian{
    width: 800px;
    height: 320px;
    margin: 150px auto;
    overflow: hidden;
}
li{
width: 260px;
float: left;
border-left: 1px solid #fff;
position: relative;
transition: all 1s;
}
.flag{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    text-align: center;
    color: white;
    background-color: rgba( 0, 0, 0, 0.5);
}
.main:hover li{
        width: 40px;
}
.main li:hover{
width: 400px;

} 
   </style>
</head>
<body >
    <ul class="main">
        <li>
        <img src="https://p2.ssl.qhimg.com/dmfd/400_300_/t01c95dda07f9572d56.jpg">
        <div class="flag"> sy </div>

        </li>
        <li>
            <img src="https://p2.ssl.qhimg.com/dmfd/400_300_/t01c95dda07f9572d56.jpg">
      
        <div class="flag"> sy </div>

        </li>
        <li>
            <img src="https://p2.ssl.qhimg.com/dmfd/400_300_/t01c95dda07f9572d56.jpg">

        <div class="flag"> sy </div>

        </li>
        <li>
            <img src="https://p2.ssl.qhimg.com/dmfd/400_300_/t01c95dda07f9572d56.jpg">

        <div class="flag"> sy </div>

        </li>
        <li>
            <img src="https://p2.ssl.qhimg.com/dmfd/400_300_/t01c95dda07f9572d56.jpg">

        <div class="flag"> sy </div>

        </li>



    </ul>
</body>
</html>